<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 100px;
            height: 100px;
            background-color: pink;
            animation: move 5s 2 alternate;
        }

        @keyframes move {
            0% {
                transform: translate(0px, 0px);
            }
            25% {
                transform: translate(0px, 500px) rotate(90deg);
                border-radius: 10px;
            }
            50% {
                transform: translate(1400px, 500px) rotate(180deg);
                border-radius: 20px;
            }
            75% {
                transform: translate(1400px, 0px) rotate(270deg);;
                border-radius: 50%;
            }
            100% {
                transform: translate(0px, 0px) rotate(360deg);;
                border-radius: 0px;
            }
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>